
/* Toolbar */
#placesToolbar {
  border: none;
  min-height: 36px !important;
  padding: 3px;  /* b/f buttons have a 1px image padding */
  -moz-padding-end: 4px;
}

/* back & forward buttons */
#back-button, #forward-button {
  list-style-image: url("chrome://browser/skin/Toolbar.png");
  -moz-appearance: none;
  padding: 0;
  border: none;
}

#placesToolbar > toolbarbutton > image,
#placesToolbar > toolbarbutton > label {
  margin: 0;
  padding: 0;
}

#back-button,
#forward-button[chromedir="rtl"] {  
  -moz-margin-start: 8px;
  -moz-image-region: rect(0px 32px 32px 0px);
}
#back-button:not([disabled="true"]):hover,
#forward-button:not([disabled="true"]):hover[chromedir="rtl"] {
  -moz-image-region: rect(32px 32px 64px 0px);
}
#back-button[disabled="true"],
#forward-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(96px 32px 128px 0px) !important;
}
#back-button:not([disabled="true"]):hover:active,
#forward-button:not([disabled="true"]):hover:active[chromedir="rtl"] {
  -moz-image-region: rect(64px 32px 96px 0px;
}

#forward-button,
#back-button[chromedir="rtl"] {
  -moz-margin-end: 8px;
  -moz-image-region: rect(0px 64px 32px 32px);
}
#forward-button:not([disabled="true"]):hover,
#back-button:not([disabled="true"]):hover[chromedir="rtl"] {
  -moz-image-region: rect(32px 64px 64px 32px);
}
#forward-button[disabled="true"],
#back-button[chromedir="rtl"][disabled="true"] {
  -moz-image-region: rect(96px 64px 128px 32px) !important;
}
#forward-button:not([disabled="true"]):hover:active,
#back-button:not([disabled="true"]):hover:active[chromedir="rtl"] {
  -moz-image-region: rect(64px 64px 96px 32px);
}

/* Menu */
#placesMenu {
  -moz-appearance: none;
  border: none;
}

#placesMenu > menu {
  -moz-padding-start: 4px;
  -moz-padding-end: 1px;
  padding: 2px 0px;
  -moz-appearance: none;
  color: #DCDCDC;
  border: 1px solid transparent;
}

#placesMenu > menu:hover {
  -moz-border-radius: 15px;
  -moz-border-left-colors: #444444;
  -moz-border-right-colors: #444444;
  background: url("chrome://global/skin/toolbar/menu-hover.png") repeat-x center;
  color: #FFFFFF ;
}

#placesMenu > menu[open="true"] {
  background: url("chrome://global/skin/toolbar/menu-active.png") repeat-x center;
  color: #DCDCDC ;
}

#placesMenu > menu > label {
  -moz-padding-end: 8px;
  background: url(chrome://global/skin/arrow/arrow-down.png) right center no-repeat;
}

#placesMenu[chromedir="rtl"] > menu > label {
  background-position: left center;
}

/* organize button */
#organizeButton {
  list-style-image: url("chrome://browser/skin/places/organize.png");
}

/* view button */
#viewMenu {
  list-style-image: url("chrome://browser/skin/places/view.png");
}

/* maintenance button */
#maintenanceButton {
  list-style-image: url("chrome://browser/skin/places/importAndBackup.png");
}

/* Root View */
#placesView {
  border: 2px solid;
  -moz-border-radius: 6px;
  -moz-border-top-colors: #707070 #444444 ;
  -moz-border-right-colors: #707070 #444444 ;
  -moz-border-bottom-colors: #707070 #444444 ;
  -moz-border-left-colors: #707070 #444444 ;
}

/* Place List, Place Content */
.placesTree {
  margin: 0px;
}

#placesList {
  -moz-appearance: none;
  margin: 0px;
  border: none;
  padding: 0;
}

#placeContent {
  -moz-appearance: none;
  border: 0px;
}

/* Search Bar */
#searchbar {
  margin: 6px -4px 0px 2px;
}

#infoPaneBox {
  background: url("chrome://global/skin/splitter/splitter-horizontal.png") repeat-x;
  padding: 5px;
}

.textbox-input-closebutton {
  -moz-appearance: none;
  margin: 1px 2px 1px 1px;
  min-width: 0;
  background: none !important;
  border: none;
  padding: 0 !important;
  list-style-image: url("chrome://global/skin/icons/close.png");
  -moz-image-region: rect(0px 16px 16px 0px);
  width: 16px;
  height: 16px;
  cursor: default;
}

.textbox-input-closebutton > .button-box {
  margin: 0;
  padding: 0;
  border: 0;
  background: none !important;
}

.textbox-input-closebutton:hover {
  -moz-image-region: rect(0px 32px 16px 16px);
}

.textbox-input-closebutton:hover:active {
  -moz-image-region: rect(0px 48px 16px 32px);
}

.small, .small[disabled="true"] {
  font-size: x-small;
  min-width: 0px;
  padding: 0px 4px 0px 4px;
  margin: 0px;  
  border: 0px;
  background: none !important;
}

.small .button-text,
.small .button-box {
  padding: 0px;
  border: 0px;
  background: none !important;
}

#searchFilter {
  padding: 0px;
}

#searchFilter .textbox-input-box {
  padding: 2px 2px 3px 4px;
}


#organizerScopeBar {
  -moz-appearance: none;
  padding: 2px 0;
  -moz-padding-end: 3px;
}

#organizerScopeBar > toolbarbutton {
  -moz-appearance: none;
  border: 1px solid transparent;
  -moz-border-radius: 5px;
  padding: 0 !important;
  margin: 0 1px;
}

#organizerScopeBar > toolbarbutton > label,
#organizerScopeBar > toolbarbutton > image {
  padding: 0;
  margin: 0;
}

#organizerScopeBar .toolbarbutton-text {
   margin: 0;
   padding: 2px 5px;
}

#organizerScopeBar > toolbarbutton:not([disabled="true"]):not([checked="true"]):hover {
  border-color: #707070;
}

#organizerScopeBar > toolbarbutton[checked="true"] {
  border-color: #AFAFAF !important;
}
